<?php

	$DECKROOT = getcwd(); 

	//echo "Index DECKROOT:" . DECKROOT . "<br />";

	require $DECKROOT . '/config/config.php';
	require $DECKROOT . '/classes/deck.php';
	require $DECKROOT . '/keten.php';

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Cp1252">

<LINK rel="stylesheet" type="text/css" href="css/LP_css.css">

<title>Proomeetheejus Dek</title>
</head>
    <body>

    	<?php
    		$deckID=1;
    		$stackID=1;
    		
    		//getDeckToXML($dbHost,$dbUser,$dbPass,$dbName);
    		getDeckToScreen($dbHost,$dbUser,$dbPass,$dbName);
    		
    		//getStacksToXML($dbHost,$dbUser,$dbPass,$dbName,$deckID);
    		getStacksToScreen($dbHost,$dbUser,$dbPass,$dbName,$deckID);
    	
	    	//getCardsToXML($dbHost,$dbUser,$dbPass,$dbName,$stackID);
	    	getCardsToScreen($dbHost,$dbUser,$dbPass,$dbName,$stackID);
    	?>
 	
    	<!-- Piwik -->
		<script type="text/javascript">
  			var _paq = _paq || [];
  			_paq.push(["trackPageView"]);
  			_paq.push(["enableLinkTracking"]);

  			(function() {
    			var u=(("https:" == document.location.protocol) ? "https" : "http") + "://croga.com/crowik/";
    			_paq.push(["setTrackerUrl", u+"piwik.php"]);
    			_paq.push(["setSiteId", "4"]);
    			var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
    			g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
  			})();
		</script>
		<!-- End Piwik Code -->
    </body>
</frameset>
</html>